<script class="ng-scope">
$(".dropdowncentermenu").css("display", "none");
$(".dropdowncentermenu2").css("display", "none");
$("#maintitle").html ("两周报表"); 
$(".navbar-absolute-bottom").css ("display" , "none");
$(".infopanel").css ("display" , "none");
$(".navbar-brand-center").css ("margin-left" , "0px");
checkmargin();
function changePageHistory(x) {
  beginValue = $('#begin').val();
  endValue = $('#end').val();
  window.location = '#/history/'+beginValue+'/'+endValue+'/'+x;
}
</script>
<style class="ng-scope">.has-navbar-top .app-body { padding-top: 72px; }</style>
<div class="scrollable backgroundcolorlightpink ng-scope">
<div class="scrollable-content overthrow">

<div class="container-fluid cn textcenter"> <!--container-->

	 <!-- 个人资料 -->
     <div>
        <div class="col-xs-12" style="font-size:20px;text-align:center"><h3>日期范围</h3></div>
        <div class="col-xs-12"> 
          <div class="textbox clearfix">
              <div class="col-xs-6" style="font-size:18px">
                <input id="begin" type="date" value="{$begin}" class="needsclick">
              </div>
              <div class="col-xs-6" style="font-size:18px">
                <input id="end" type="date" value="{$end}" class="needsclick">
              </div>
          </div>
        </div>
        <div class="padding10 clearfix"></div>
        <div class="col-xs-12"> 
          <input class="submitbtn cnbig btnradius needsclick" style="padding: 14px;" type="button" id="btnRecharge3" onclick="javascript:changePageHistory(1)" value="查询">
        </div>

    </div>

    <div class="padding10 clearfix"></div>
    <div class="padding10 clearfix"></div>
    <div class="padding10 clearfix"></div>
    <div class="padding10 clearfix"></div>
<if condition="$sum_num neq 0">
	<div id="history">

	<table>
	  <thead class="row graybg ">
	  <tr>
	  <th  style="text-align:center;">日期</th>
	  <th class="col-xs-2"  style="text-align:center;">注数</th>
	  <th class="col-xs-3"  style="text-align:center;">金额</th>
	 <th class="col-xs-2"  style="text-align:center;">退水</th> 
	  <th class="col-xs-3"  style="text-align:center;">盈亏</th>

		</tr>
	 </thead>	
		<tbody>

		<foreach name="list" item="vo">
		<tr class="">
			<td class="time">{$vo.add_time|date="Y/m/d H:i:s",###}</td>
			<td class="period"><span class="lottery">1</span></td>
			<td class="contents">{$vo.money}</td>
		    <td class="range">{$vo.rebate}</td>
			<td class="range" <if condition="$vo.win lt 0"> style="color:red;"</if>>{$vo.win}</td>
		</tr>
				
		</foreach>

		</tbody>
		</table>

		<div class="row backgroundcolorpink">
	    	<div class="padding10 clearfix">
	    		<div class="col-xs-3 valign">总计</div>
	            <div class="col-xs-2 valign valign" style=" padding-right: 25px;">{$sum_num}</div>
	            <div class="col-xs-2 valign valign" >{$sum_money}</div>
	            <div class="col-xs-2 valign valign" style="padding-left: 33px;">{$sum_tui}</div>
	            <div class="col-xs-3 cnbig fontbold valign " <?php if($sum_win<0){?>style="color:red;"<?php }?>><?php echo sprintf('%.2f',$sum_win);?></div>
	        </div>
		</div>
	<else/>
		<div class="padding10 clearfix">
	    		<div >暂无相关数据...</div> 
	    </div>
	</if>
		
	</div>
</div><!--container-->
{$page}
    </div>
</div>
<script class="ng-scope">
FastClick.attach(document.body);
</script>
        